package com.study.sfd.medicine.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.study.common.utils.PageUtils;
import com.study.sfd.medicine.entity.MedicineEntity;
import com.study.sfd.medicine.vo.MedicineWithImgs;

import java.util.List;
import java.util.Map;

/**
 * medicine(药品)
 *
 * @author 王个球
 * @email wangdajunzy@163.com
 * @date 2021-11-12 13:37:43
 */
public interface MedicineService extends IService<MedicineEntity> {

  PageUtils queryPage(Map<String, Object> params);

  PageUtils queryPageWithImg(Map<String, Object> params);

  void saveWithImgs(MedicineWithImgs medicineEntity);

  MedicineWithImgs getDetailById(Integer id);

  void updateWithImgsById(MedicineWithImgs medicine, Integer id);

  void removeWithImgsByIds(List<Integer> ids);
}

